package com.mbrs.aggr;

import dml.common.times.KeepAlive;
import dml.users.aggr.KeepAliveSession;

public class MySession implements KeepAliveSession {

    private String id;

    private long playerId;

    private KeepAlive keepAlive;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    @Override
    public KeepAlive getKeepAlive() {
        return keepAlive;
    }

    @Override
    public void setKeepAlive(KeepAlive keepAlive) {
        this.keepAlive = keepAlive;
    }

    @Override
    public Object getUserId() {
        return playerId;
    }

    @Override
    public void setUserId(Object userId) {
        playerId = (long) userId;
    }

}
